#include <stdio.h>

int main(void){
    int num;
    char symbol;
    scanf("%d", &num);
    int result = num;

    while(1){
        scanf("%c", &symbol);
        if(symbol == '='){
            break;
        }
        scanf("%d", &num);
        switch (symbol){
        case '+': result += num; break;
        case '-': result -= num; break;
        case '*': result *= num; break;
        case '/': result /= num; break;
        }

        
    }
    printf("%d", result);
    return 0;
}